﻿using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;

namespace Centrica.TaskManager.Task.Calendar
{
    public class TaskCalendarModule : IModule
    {
        private IRegionManager _regionManager;

        public TaskCalendarModule(IRegionManager regionManager)
        {

            _regionManager = regionManager;
        
        }
        
        #region IModule Members

        public void Initialize()
        {

            _regionManager.RegisterViewWithRegion("TaskCalendarRegion", typeof(TaskCalendarView));

        }

        #endregion
    }
}
